const express = require('express');
const path = require('path')
const public = path.join(__dirname,'public')
//创建服务器
const app =express();
app.use(express.static(public))
//监听端口
app.listen(3000);
console.log('服务器启动成功')